// $ANTLR 3.4 /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g 2013-11-10 19:51:34

import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;

@SuppressWarnings({"all", "warnings", "unchecked"})
public class aufgabe1_grammarLexer extends Lexer {
    public static final int EOF=-1;
    public static final int T__9=9;
    public static final int GLEICH=4;
    public static final int OPERATOR=5;
    public static final int RAETSEL=6;
    public static final int WHITESPACE=7;
    public static final int Z_BLOCK=8;

    // delegates
    // delegators
    public Lexer[] getDelegates() {
        return new Lexer[] {};
    }

    public aufgabe1_grammarLexer() {} 
    public aufgabe1_grammarLexer(CharStream input) {
        this(input, new RecognizerSharedState());
    }
    public aufgabe1_grammarLexer(CharStream input, RecognizerSharedState state) {
        super(input,state);
    }
    public String getGrammarFileName() { return "/Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g"; }

    // $ANTLR start "T__9"
    public final void mT__9() throws RecognitionException {
        try {
            int _type = T__9;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:2:6: ( '=' )
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:2:8: '='
            {
            match('='); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "T__9"

    // $ANTLR start "Z_BLOCK"
    public final void mZ_BLOCK() throws RecognitionException {
        try {
            int _type = Z_BLOCK;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:28:9: ( ( 'A' .. 'H' | 'J' | 'K' )+ )
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:28:11: ( 'A' .. 'H' | 'J' | 'K' )+
            {
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:28:11: ( 'A' .. 'H' | 'J' | 'K' )+
            int cnt1=0;
            loop1:
            do {
                int alt1=2;
                int LA1_0 = input.LA(1);

                if ( ((LA1_0 >= 'A' && LA1_0 <= 'H')||(LA1_0 >= 'J' && LA1_0 <= 'K')) ) {
                    alt1=1;
                }


                switch (alt1) {
            	case 1 :
            	    // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:
            	    {
            	    if ( (input.LA(1) >= 'A' && input.LA(1) <= 'H')||(input.LA(1) >= 'J' && input.LA(1) <= 'K') ) {
            	        input.consume();
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt1 >= 1 ) break loop1;
                        EarlyExitException eee =
                            new EarlyExitException(1, input);
                        throw eee;
                }
                cnt1++;
            } while (true);


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "Z_BLOCK"

    // $ANTLR start "OPERATOR"
    public final void mOPERATOR() throws RecognitionException {
        try {
            int _type = OPERATOR;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:29:10: ( ( '+' | '-' ) )
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:
            {
            if ( input.LA(1)=='+'||input.LA(1)=='-' ) {
                input.consume();
            }
            else {
                MismatchedSetException mse = new MismatchedSetException(null,input);
                recover(mse);
                throw mse;
            }


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "OPERATOR"

    // $ANTLR start "EOF"
    public final void mEOF() throws RecognitionException {
        try {
            int _type = EOF;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:30:5: ( ( '\\r' | '\\n' )+ )
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:30:7: ( '\\r' | '\\n' )+
            {
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:30:7: ( '\\r' | '\\n' )+
            int cnt2=0;
            loop2:
            do {
                int alt2=2;
                int LA2_0 = input.LA(1);

                if ( (LA2_0=='\n'||LA2_0=='\r') ) {
                    alt2=1;
                }


                switch (alt2) {
            	case 1 :
            	    // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:
            	    {
            	    if ( input.LA(1)=='\n'||input.LA(1)=='\r' ) {
            	        input.consume();
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt2 >= 1 ) break loop2;
                        EarlyExitException eee =
                            new EarlyExitException(2, input);
                        throw eee;
                }
                cnt2++;
            } while (true);


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "EOF"

    // $ANTLR start "WHITESPACE"
    public final void mWHITESPACE() throws RecognitionException {
        try {
            int _type = WHITESPACE;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:31:12: ( ( '\\t' | ' ' )+ )
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:31:14: ( '\\t' | ' ' )+
            {
            // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:31:14: ( '\\t' | ' ' )+
            int cnt3=0;
            loop3:
            do {
                int alt3=2;
                int LA3_0 = input.LA(1);

                if ( (LA3_0=='\t'||LA3_0==' ') ) {
                    alt3=1;
                }


                switch (alt3) {
            	case 1 :
            	    // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:
            	    {
            	    if ( input.LA(1)=='\t'||input.LA(1)==' ' ) {
            	        input.consume();
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt3 >= 1 ) break loop3;
                        EarlyExitException eee =
                            new EarlyExitException(3, input);
                        throw eee;
                }
                cnt3++;
            } while (true);


             _channel = HIDDEN; 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "WHITESPACE"

    public void mTokens() throws RecognitionException {
        // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:1:8: ( T__9 | Z_BLOCK | OPERATOR | EOF | WHITESPACE )
        int alt4=5;
        switch ( input.LA(1) ) {
        case '=':
            {
            alt4=1;
            }
            break;
        case 'A':
        case 'B':
        case 'C':
        case 'D':
        case 'E':
        case 'F':
        case 'G':
        case 'H':
        case 'J':
        case 'K':
            {
            alt4=2;
            }
            break;
        case '+':
        case '-':
            {
            alt4=3;
            }
            break;
        case '\n':
        case '\r':
            {
            alt4=4;
            }
            break;
        case '\t':
        case ' ':
            {
            alt4=5;
            }
            break;
        default:
            NoViableAltException nvae =
                new NoViableAltException("", 4, 0, input);

            throw nvae;

        }

        switch (alt4) {
            case 1 :
                // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:1:10: T__9
                {
                mT__9(); 


                }
                break;
            case 2 :
                // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:1:15: Z_BLOCK
                {
                mZ_BLOCK(); 


                }
                break;
            case 3 :
                // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:1:23: OPERATOR
                {
                mOPERATOR(); 


                }
                break;
            case 4 :
                // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:1:32: EOF
                {
                match(EOF); 


                }
                break;
            case 5 :
                // /Users/iamapo/Desktop/CI Praktikum 2/aufgabe1_grammar.g:1:36: WHITESPACE
                {
                mWHITESPACE(); 


                }
                break;

        }

    }


 

}